package com.book.modules.core.controller;

import com.book.common.helper.I18nHelper;
import com.book.modules.helper.CurrentUserHelper;
import com.book.modules.helper.ExcelHelper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description：
 *
 * @Author： leo.xiong
 * @CreateDate： 2019/8/13 16:29
 * @Email： leo.xiong@suyun360.com
 * Version：1.0
 */
@RestController
public abstract class BaseController {

    @Value("{baseAdminPath:/}")
    private String baseAdminPath;

    @Value("${adminPath:/}")
    protected String adminPath;

    @Value("${custom.clientId:1}")
    protected String clientId;

    @Value("${custom.clientSecret:}")
    protected String clientSecret;

    @Value("${custom.scope:}")
    protected String scope;

    @Value("${custom.isUseSecurity:true}")
    protected boolean isUseSecurity;

    @Autowired
    protected CurrentUserHelper currentUserHelper;

    @Autowired
    protected I18nHelper i18nHelper;

    @Autowired
    protected ExcelHelper excelHelper;
}
